'use strick'

const path = require('path')
const {CleanWebpackPlugin} = require('clean-webpack-plugin')
const { VueLoaderPlugin } = require("vue-loader");
module.exports = {
  entry:'./src/main.js',
  output :{
    path:path.join(__dirname,"zdist"),
    filename:"[name].js"
  },
  mode:'none',
  module:{
    rules:[
      {
        test: /\.vue$/,
        use: ["vue-loader"],
      },
      {
        test:/\.js$/,
        use:["babel-loader"]
      },
      {
        test: /\.css$/,
        use: ["style-loader", "css-loader"],
      },
    ]
  },
  plugins:[
    new CleanWebpackPlugin({verbose:true}),
    new VueLoaderPlugin()
  ],
  stats:'verbose'
}